var vm = new Vue({
  el: "#header_vue",
  data: {
    page_number: 1,
    sliderList: [
      {
        title: "首页",
        sort: 1,
        expand: false,
      },
      {
        title: "要闻",
        sort: 2,
        expand: true,
        subSlider: [
          {
            title: "科研成果",
            sort: 1,
          },
          {
            title: "前沿技术",
            sort: 2,
          },
          {
            title: "科技探讨",
            sort: 3,
          },
          {
            title: "发表文章",
            sort: 4,
          },
          {
            title: "智能AI",
            sort: 54,
          },
        ],
      },
      {
        title: "解读",
        sort: 3,
        expand: true,
        subSlider: [
          {
            title: "科研成果",
            sort: 1,
          },
          {
            title: "前沿技术",
            sort: 2,
          },
          {
            title: "科技探讨",
            sort: 3,
          },
          {
            title: "发表文章",
            sort: 4,
          },
          {
            title: "智能AI",
            sort: 54,
          },
        ],
      },
      {
        title: "科创",
        sort: 4,
        expand: true,
        subSlider: [
          {
            title: "科研成果",
            sort: 1,
          },
          {
            title: "前沿技术",
            sort: 2,
          },
          {
            title: "科技探讨",
            sort: 3,
          },
          {
            title: "发表文章",
            sort: 4,
          },
          {
            title: "智能AI",
            sort: 54,
          },
        ],
      },
      {
        title: "科普",
        sort: 5,
        expand: true,
        subSlider: [
          {
            title: "科研成果",
            sort: 1,
          },
          {
            title: "前沿技术",
            sort: 2,
          },
          {
            title: "科技探讨",
            sort: 3,
          },
          {
            title: "发表文章",
            sort: 4,
          },
          {
            title: "智能AI",
            sort: 54,
          },
        ],
      },
      {
        title: "科教",
        sort: 6,
        expand: true,
        subSlider: [
          {
            title: "科研成果",
            sort: 1,
          },
          {
            title: "前沿技术",
            sort: 2,
          },
          {
            title: "科技探讨",
            sort: 3,
          },
          {
            title: "发表文章",
            sort: 4,
          },
          {
            title: "智能AI",
            sort: 54,
          },
        ],
      },
      {
        title: "直播",
        sort: 71,
        expand: false,
      },
      {
        title: "视频",
        sort: 8,
        expand: false,
      },
      {
        title: "图解",
        sort: 9,
        expand: false,
      },
      {
        title: "专题",
        sort: 10,
        expand: false,
      },
      {
        title: "服务",
        sort: 10,
        expand: false,
      },
    ],
    qrCode:
      "",
  },
  mounted: function () {},
  methods: {
    handleExpandSubSlider: function (sort) {
      if (this.page_number == sort) {
        this.page_number = 0;
      } else {
        this.page_number = sort;
      }
    },
  },
});
